# -*- coding: utf-8 -*-
import datetime
from datetime import datetime
from typing import Optional, List
from pydantic import BaseModel, Field, EmailStr

class CreateQm(BaseModel):
    dev_no:int 
    station_no:int

    created_at:datetime=Field(description='图片创建时间')

    name:str
    state: str


    temp: Optional[float] = None
    humi: Optional[float] = None

    temp_set: Optional[float] = None
    humi_set: Optional[float] = None

    temp_set_upper:Optional[float] = None
    temp_set_lower:Optional[float] = None

    humi_set_upper:Optional[float] = None
    humi_set_lower:Optional[float] = None

    abnormal:Optional[str] = None


    

    


